package com.test.test_rest.miner_pool.domain.gen;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MinerSymbolCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer mysqlOffset;

    protected Integer mysqlLength;

    protected String isCURD;

    public MinerSymbolCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlOffset(Integer mysqlOffset) {
        this.mysqlOffset=mysqlOffset;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlOffset() {
        return mysqlOffset;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlLength(Integer mysqlLength) {
        this.mysqlLength=mysqlLength;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlLength() {
        return mysqlLength;
    }

    public void setIsCURD(String isCURD) {
        this.isCURD=isCURD;
    }

    public String getIsCURD() {
        return isCURD;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("NAME is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("NAME is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("NAME =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("NAME <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("NAME >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("NAME >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("NAME <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("NAME <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("NAME like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("NAME not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("NAME in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("NAME not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("NAME between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("NAME not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andUnitIsNull() {
            addCriterion("UNIT is null");
            return (Criteria) this;
        }

        public Criteria andUnitIsNotNull() {
            addCriterion("UNIT is not null");
            return (Criteria) this;
        }

        public Criteria andUnitEqualTo(String value) {
            addCriterion("UNIT =", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotEqualTo(String value) {
            addCriterion("UNIT <>", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThan(String value) {
            addCriterion("UNIT >", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanOrEqualTo(String value) {
            addCriterion("UNIT >=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThan(String value) {
            addCriterion("UNIT <", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThanOrEqualTo(String value) {
            addCriterion("UNIT <=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLike(String value) {
            addCriterion("UNIT like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotLike(String value) {
            addCriterion("UNIT not like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitIn(List<String> values) {
            addCriterion("UNIT in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotIn(List<String> values) {
            addCriterion("UNIT not in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitBetween(String value1, String value2) {
            addCriterion("UNIT between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotBetween(String value1, String value2) {
            addCriterion("UNIT not between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andElectricChargeIsNull() {
            addCriterion("ELECTRIC_CHARGE is null");
            return (Criteria) this;
        }

        public Criteria andElectricChargeIsNotNull() {
            addCriterion("ELECTRIC_CHARGE is not null");
            return (Criteria) this;
        }

        public Criteria andElectricChargeEqualTo(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE =", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeNotEqualTo(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE <>", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeGreaterThan(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE >", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE >=", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeLessThan(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE <", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ELECTRIC_CHARGE <=", value, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeIn(List<BigDecimal> values) {
            addCriterion("ELECTRIC_CHARGE in", values, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeNotIn(List<BigDecimal> values) {
            addCriterion("ELECTRIC_CHARGE not in", values, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ELECTRIC_CHARGE between", value1, value2, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andElectricChargeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ELECTRIC_CHARGE not between", value1, value2, "electricCharge");
            return (Criteria) this;
        }

        public Criteria andManagerCostsIsNull() {
            addCriterion("MANAGER_COSTS is null");
            return (Criteria) this;
        }

        public Criteria andManagerCostsIsNotNull() {
            addCriterion("MANAGER_COSTS is not null");
            return (Criteria) this;
        }

        public Criteria andManagerCostsEqualTo(BigDecimal value) {
            addCriterion("MANAGER_COSTS =", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsNotEqualTo(BigDecimal value) {
            addCriterion("MANAGER_COSTS <>", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsGreaterThan(BigDecimal value) {
            addCriterion("MANAGER_COSTS >", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("MANAGER_COSTS >=", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsLessThan(BigDecimal value) {
            addCriterion("MANAGER_COSTS <", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("MANAGER_COSTS <=", value, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsIn(List<BigDecimal> values) {
            addCriterion("MANAGER_COSTS in", values, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsNotIn(List<BigDecimal> values) {
            addCriterion("MANAGER_COSTS not in", values, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("MANAGER_COSTS between", value1, value2, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andManagerCostsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("MANAGER_COSTS not between", value1, value2, "managerCosts");
            return (Criteria) this;
        }

        public Criteria andSiteCostIsNull() {
            addCriterion("SITE_COST is null");
            return (Criteria) this;
        }

        public Criteria andSiteCostIsNotNull() {
            addCriterion("SITE_COST is not null");
            return (Criteria) this;
        }

        public Criteria andSiteCostEqualTo(BigDecimal value) {
            addCriterion("SITE_COST =", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostNotEqualTo(BigDecimal value) {
            addCriterion("SITE_COST <>", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostGreaterThan(BigDecimal value) {
            addCriterion("SITE_COST >", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SITE_COST >=", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostLessThan(BigDecimal value) {
            addCriterion("SITE_COST <", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SITE_COST <=", value, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostIn(List<BigDecimal> values) {
            addCriterion("SITE_COST in", values, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostNotIn(List<BigDecimal> values) {
            addCriterion("SITE_COST not in", values, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SITE_COST between", value1, value2, "siteCost");
            return (Criteria) this;
        }

        public Criteria andSiteCostNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SITE_COST not between", value1, value2, "siteCost");
            return (Criteria) this;
        }

        public Criteria andAllPowerIsNull() {
            addCriterion("ALL_POWER is null");
            return (Criteria) this;
        }

        public Criteria andAllPowerIsNotNull() {
            addCriterion("ALL_POWER is not null");
            return (Criteria) this;
        }

        public Criteria andAllPowerEqualTo(String value) {
            addCriterion("ALL_POWER =", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerNotEqualTo(String value) {
            addCriterion("ALL_POWER <>", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerGreaterThan(String value) {
            addCriterion("ALL_POWER >", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerGreaterThanOrEqualTo(String value) {
            addCriterion("ALL_POWER >=", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerLessThan(String value) {
            addCriterion("ALL_POWER <", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerLessThanOrEqualTo(String value) {
            addCriterion("ALL_POWER <=", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerLike(String value) {
            addCriterion("ALL_POWER like", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerNotLike(String value) {
            addCriterion("ALL_POWER not like", value, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerIn(List<String> values) {
            addCriterion("ALL_POWER in", values, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerNotIn(List<String> values) {
            addCriterion("ALL_POWER not in", values, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerBetween(String value1, String value2) {
            addCriterion("ALL_POWER between", value1, value2, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllPowerNotBetween(String value1, String value2) {
            addCriterion("ALL_POWER not between", value1, value2, "allPower");
            return (Criteria) this;
        }

        public Criteria andAllBlockIsNull() {
            addCriterion("ALL_BLOCK is null");
            return (Criteria) this;
        }

        public Criteria andAllBlockIsNotNull() {
            addCriterion("ALL_BLOCK is not null");
            return (Criteria) this;
        }

        public Criteria andAllBlockEqualTo(String value) {
            addCriterion("ALL_BLOCK =", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockNotEqualTo(String value) {
            addCriterion("ALL_BLOCK <>", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockGreaterThan(String value) {
            addCriterion("ALL_BLOCK >", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockGreaterThanOrEqualTo(String value) {
            addCriterion("ALL_BLOCK >=", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockLessThan(String value) {
            addCriterion("ALL_BLOCK <", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockLessThanOrEqualTo(String value) {
            addCriterion("ALL_BLOCK <=", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockLike(String value) {
            addCriterion("ALL_BLOCK like", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockNotLike(String value) {
            addCriterion("ALL_BLOCK not like", value, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockIn(List<String> values) {
            addCriterion("ALL_BLOCK in", values, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockNotIn(List<String> values) {
            addCriterion("ALL_BLOCK not in", values, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockBetween(String value1, String value2) {
            addCriterion("ALL_BLOCK between", value1, value2, "allBlock");
            return (Criteria) this;
        }

        public Criteria andAllBlockNotBetween(String value1, String value2) {
            addCriterion("ALL_BLOCK not between", value1, value2, "allBlock");
            return (Criteria) this;
        }

        public Criteria andDailyProfitIsNull() {
            addCriterion("DAILY_PROFIT is null");
            return (Criteria) this;
        }

        public Criteria andDailyProfitIsNotNull() {
            addCriterion("DAILY_PROFIT is not null");
            return (Criteria) this;
        }

        public Criteria andDailyProfitEqualTo(BigDecimal value) {
            addCriterion("DAILY_PROFIT =", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitNotEqualTo(BigDecimal value) {
            addCriterion("DAILY_PROFIT <>", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitGreaterThan(BigDecimal value) {
            addCriterion("DAILY_PROFIT >", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("DAILY_PROFIT >=", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitLessThan(BigDecimal value) {
            addCriterion("DAILY_PROFIT <", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitLessThanOrEqualTo(BigDecimal value) {
            addCriterion("DAILY_PROFIT <=", value, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitIn(List<BigDecimal> values) {
            addCriterion("DAILY_PROFIT in", values, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitNotIn(List<BigDecimal> values) {
            addCriterion("DAILY_PROFIT not in", values, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DAILY_PROFIT between", value1, value2, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andDailyProfitNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DAILY_PROFIT not between", value1, value2, "dailyProfit");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalIsNull() {
            addCriterion("MIN_WITHDRAWAL is null");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalIsNotNull() {
            addCriterion("MIN_WITHDRAWAL is not null");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalEqualTo(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL =", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalNotEqualTo(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL <>", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalGreaterThan(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL >", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL >=", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalLessThan(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL <", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("MIN_WITHDRAWAL <=", value, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalIn(List<BigDecimal> values) {
            addCriterion("MIN_WITHDRAWAL in", values, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalNotIn(List<BigDecimal> values) {
            addCriterion("MIN_WITHDRAWAL not in", values, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("MIN_WITHDRAWAL between", value1, value2, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andMinWithdrawalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("MIN_WITHDRAWAL not between", value1, value2, "minWithdrawal");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateIsNull() {
            addCriterion("ALL_POWER_RATE is null");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateIsNotNull() {
            addCriterion("ALL_POWER_RATE is not null");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateEqualTo(BigDecimal value) {
            addCriterion("ALL_POWER_RATE =", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateNotEqualTo(BigDecimal value) {
            addCriterion("ALL_POWER_RATE <>", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateGreaterThan(BigDecimal value) {
            addCriterion("ALL_POWER_RATE >", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ALL_POWER_RATE >=", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateLessThan(BigDecimal value) {
            addCriterion("ALL_POWER_RATE <", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ALL_POWER_RATE <=", value, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateIn(List<BigDecimal> values) {
            addCriterion("ALL_POWER_RATE in", values, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateNotIn(List<BigDecimal> values) {
            addCriterion("ALL_POWER_RATE not in", values, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ALL_POWER_RATE between", value1, value2, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andAllPowerRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ALL_POWER_RATE not between", value1, value2, "allPowerRate");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("PRICE is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("PRICE is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("PRICE =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("PRICE <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("PRICE >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("PRICE <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("PRICE in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("PRICE not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceRateIsNull() {
            addCriterion("PRICE_RATE is null");
            return (Criteria) this;
        }

        public Criteria andPriceRateIsNotNull() {
            addCriterion("PRICE_RATE is not null");
            return (Criteria) this;
        }

        public Criteria andPriceRateEqualTo(BigDecimal value) {
            addCriterion("PRICE_RATE =", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateNotEqualTo(BigDecimal value) {
            addCriterion("PRICE_RATE <>", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateGreaterThan(BigDecimal value) {
            addCriterion("PRICE_RATE >", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE_RATE >=", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateLessThan(BigDecimal value) {
            addCriterion("PRICE_RATE <", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE_RATE <=", value, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateIn(List<BigDecimal> values) {
            addCriterion("PRICE_RATE in", values, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateNotIn(List<BigDecimal> values) {
            addCriterion("PRICE_RATE not in", values, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE_RATE between", value1, value2, "priceRate");
            return (Criteria) this;
        }

        public Criteria andPriceRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE_RATE not between", value1, value2, "priceRate");
            return (Criteria) this;
        }

        public Criteria andDifficultyIsNull() {
            addCriterion("DIFFICULTY is null");
            return (Criteria) this;
        }

        public Criteria andDifficultyIsNotNull() {
            addCriterion("DIFFICULTY is not null");
            return (Criteria) this;
        }

        public Criteria andDifficultyEqualTo(String value) {
            addCriterion("DIFFICULTY =", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyNotEqualTo(String value) {
            addCriterion("DIFFICULTY <>", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyGreaterThan(String value) {
            addCriterion("DIFFICULTY >", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyGreaterThanOrEqualTo(String value) {
            addCriterion("DIFFICULTY >=", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyLessThan(String value) {
            addCriterion("DIFFICULTY <", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyLessThanOrEqualTo(String value) {
            addCriterion("DIFFICULTY <=", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyLike(String value) {
            addCriterion("DIFFICULTY like", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyNotLike(String value) {
            addCriterion("DIFFICULTY not like", value, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyIn(List<String> values) {
            addCriterion("DIFFICULTY in", values, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyNotIn(List<String> values) {
            addCriterion("DIFFICULTY not in", values, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyBetween(String value1, String value2) {
            addCriterion("DIFFICULTY between", value1, value2, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyNotBetween(String value1, String value2) {
            addCriterion("DIFFICULTY not between", value1, value2, "difficulty");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffIsNull() {
            addCriterion("DIFFICULTY_DIFF is null");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffIsNotNull() {
            addCriterion("DIFFICULTY_DIFF is not null");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffEqualTo(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF =", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffNotEqualTo(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF <>", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffGreaterThan(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF >", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF >=", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffLessThan(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF <", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffLessThanOrEqualTo(BigDecimal value) {
            addCriterion("DIFFICULTY_DIFF <=", value, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffIn(List<BigDecimal> values) {
            addCriterion("DIFFICULTY_DIFF in", values, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffNotIn(List<BigDecimal> values) {
            addCriterion("DIFFICULTY_DIFF not in", values, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DIFFICULTY_DIFF between", value1, value2, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andDifficultyDiffNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DIFFICULTY_DIFF not between", value1, value2, "difficultyDiff");
            return (Criteria) this;
        }

        public Criteria andSettlementModelIsNull() {
            addCriterion("SETTLEMENT_MODEL is null");
            return (Criteria) this;
        }

        public Criteria andSettlementModelIsNotNull() {
            addCriterion("SETTLEMENT_MODEL is not null");
            return (Criteria) this;
        }

        public Criteria andSettlementModelEqualTo(String value) {
            addCriterion("SETTLEMENT_MODEL =", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelNotEqualTo(String value) {
            addCriterion("SETTLEMENT_MODEL <>", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelGreaterThan(String value) {
            addCriterion("SETTLEMENT_MODEL >", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelGreaterThanOrEqualTo(String value) {
            addCriterion("SETTLEMENT_MODEL >=", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelLessThan(String value) {
            addCriterion("SETTLEMENT_MODEL <", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelLessThanOrEqualTo(String value) {
            addCriterion("SETTLEMENT_MODEL <=", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelLike(String value) {
            addCriterion("SETTLEMENT_MODEL like", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelNotLike(String value) {
            addCriterion("SETTLEMENT_MODEL not like", value, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelIn(List<String> values) {
            addCriterion("SETTLEMENT_MODEL in", values, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelNotIn(List<String> values) {
            addCriterion("SETTLEMENT_MODEL not in", values, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelBetween(String value1, String value2) {
            addCriterion("SETTLEMENT_MODEL between", value1, value2, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andSettlementModelNotBetween(String value1, String value2) {
            addCriterion("SETTLEMENT_MODEL not between", value1, value2, "settlementModel");
            return (Criteria) this;
        }

        public Criteria andIconIsNull() {
            addCriterion("ICON is null");
            return (Criteria) this;
        }

        public Criteria andIconIsNotNull() {
            addCriterion("ICON is not null");
            return (Criteria) this;
        }

        public Criteria andIconEqualTo(String value) {
            addCriterion("ICON =", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotEqualTo(String value) {
            addCriterion("ICON <>", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThan(String value) {
            addCriterion("ICON >", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThanOrEqualTo(String value) {
            addCriterion("ICON >=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThan(String value) {
            addCriterion("ICON <", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThanOrEqualTo(String value) {
            addCriterion("ICON <=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLike(String value) {
            addCriterion("ICON like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotLike(String value) {
            addCriterion("ICON not like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconIn(List<String> values) {
            addCriterion("ICON in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotIn(List<String> values) {
            addCriterion("ICON not in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconBetween(String value1, String value2) {
            addCriterion("ICON between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotBetween(String value1, String value2) {
            addCriterion("ICON not between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andMinerPoolIsNull() {
            addCriterion("MINER_POOL is null");
            return (Criteria) this;
        }

        public Criteria andMinerPoolIsNotNull() {
            addCriterion("MINER_POOL is not null");
            return (Criteria) this;
        }

        public Criteria andMinerPoolEqualTo(String value) {
            addCriterion("MINER_POOL =", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolNotEqualTo(String value) {
            addCriterion("MINER_POOL <>", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolGreaterThan(String value) {
            addCriterion("MINER_POOL >", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolGreaterThanOrEqualTo(String value) {
            addCriterion("MINER_POOL >=", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolLessThan(String value) {
            addCriterion("MINER_POOL <", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolLessThanOrEqualTo(String value) {
            addCriterion("MINER_POOL <=", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolLike(String value) {
            addCriterion("MINER_POOL like", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolNotLike(String value) {
            addCriterion("MINER_POOL not like", value, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolIn(List<String> values) {
            addCriterion("MINER_POOL in", values, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolNotIn(List<String> values) {
            addCriterion("MINER_POOL not in", values, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolBetween(String value1, String value2) {
            addCriterion("MINER_POOL between", value1, value2, "minerPool");
            return (Criteria) this;
        }

        public Criteria andMinerPoolNotBetween(String value1, String value2) {
            addCriterion("MINER_POOL not between", value1, value2, "minerPool");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}